package com.sophware {
	import mx.collections.ArrayCollection;
	
	public class PaletteModel {
		[Bindable] public var name:String;
		[Bindable] public var colors:ArrayCollection;
		
		public function PaletteModel(inName:String="") {
			name=inName;
			colors = new ArrayCollection();
		}
		
		public function toString():String {
			var tempString:String = "";
			tempString += name+": ";
			
			if(colors.length > 0) {
				for(var i:int=0;i<colors.length;i++) {
					tempString += colors[i].touint().toString(16)+", ";
				}
			}
			else {
				tempString += "Empty color set";
			}
			
			return tempString;
		}
	}
}